


import dexen

from libs import constants

pop1 = dexen.Population("pop_synch")
pop1.set_max_inds(constants.MAX_INDIVIDUALS)
pop1.set_task("initialization", "tasks.initialization", "InitializationTask")
pop1.set_task("development", "tasks.development", "DevelopmentTask", 200)
pop1.set_task("evaluation", "tasks.evaluation", "EvaluationTask", 200)
pop1.set_task("feedback", "tasks.feedback", "FeedbackTask", 400)


pop1 = dexen.Population("pop_asynch")
pop1.set_max_inds(constants.MAX_INDIVIDUALS)
pop1.set_task("initialization", "tasks.initialization", "InitializationTask")
pop1.set_task("development", "tasks.development", "DevelopmentTask", 10)
pop1.set_task("evaluation", "tasks.evaluation", "EvaluationTask", 10)
pop1.set_task("feedback", "tasks.feedback", "FeedbackTask", 400)
